﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestHtmlEditor.aspx.cs" Inherits="TestHtmlEditor" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
      #form1 {
        height: 405px;
        width: 586px;
      }
    </style>
</head>
<body>
  <form id="form1" runat="server">
    <div>
      <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="Server" />
    
      <asp:TextBox ID="txtMyRichEditor" runat="server" Height="308px" Width="447px" ontextchanged="txtMyRichEditor_TextChanged"></asp:TextBox>
      <br />
    
      <asp:HtmlEditorExtender ID="txtMyRichEditor_HtmlEditorExtender" runat="server" TargetControlID="txtMyRichEditor"  EnableSanitization="false"></asp:HtmlEditorExtender>

      Text from MyRichEditor:
      <asp:Label ID="lblInputText" runat="server" Text=""></asp:Label><br />
      <asp:Button ID="Button1" runat="server" Text="Submit" />
    </div>
  </form>
</body>
</html>
